//
//  DyShareActionSheet.h
//  DyShare
//
//  Created by Bell on 14-3-17.
//  Copyright (c) 2014年 deyi. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol DyShareActionSheetDelegate <NSObject>

- (void)didSelectAtIndex:(NSInteger)index sender:(id)sender;
@optional
- (void)didCancel:(id)sender;

@end

/**
 分享选择界面
 */
@interface DyShareActionSheet : UIView
{
    CGFloat _spaceButtonX;
    CGFloat _spaceTitleX;
}
/**
 *  分享选择界面
 *
 *  @param title       标题
 *  @param delegate    回调
 *  @param cancelTitle 取消按钮标题
 *  @param shareTitles 分享按钮按钮标题列表
 *  @param shareImages 分享按钮图片名称列表
 *
 *  @return DyShareActionSheet
 */
- (id)initWithTitle:(NSString *)title
           delegate:(id<DyShareActionSheetDelegate>)delegate
        cancelTitle:(NSString *)cancelTitle
        ShareTitles:(NSArray *)shareTitles
        shareImages:(NSArray *)shareImages;

/**
 *  在view中显示
 *
 *  @param view 显示于view
 */
- (void)showInView:(UIView *)view;

@end
